<?php
$this->_toolbar = array(
		'title'		=>	Yii::t('app', 'View Detail').' #'.GxHtml::encode(GxHtml::valueEx($model)),
		'buttons'	=>	array(
			CHtml::link(Yii::t('admin_news', 'Update Page'), Yii::app()->createUrl('/admin_news/pages/update',array('id'=>$model->id)), array('class'=>'button-s')),
			CHtml::link(Yii::t('admin_news', 'Delete Page'), "", array(
				'submit'	=>	Yii::app()->createUrl('/admin_news/pages/delete',array('command'=>'delete','id'=>$model->id)),
				'confirm'	=>	Yii::t('app','Are you sure you want to delete this item?'),
				'class'		=>	'button-s del'
			)),
		)
);


$this->widget('zii.widgets.CDetailView', array(
	'data' => $model,
	'attributes' => array(
		'id',
		'catid',
		'title',
		'alias',
		'introtext',
		'fulltext',
		'created',
		array(
			'name'	=>	'created_by',
			'value'	=>	iUsers::model()->findByPk($model->created_by)->username
		),
		'modified',
		array(
			'name'	=>	'modified_by',
			'value'	=>	iUsers::model()->findByPk($model->modified_by)->username
		),
		'ordering',
		'metakey',
		'metadesc',
		'status',
	),
)); ?>

